home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1989 / Nov 89 / 0062-Re TTEViews and TDia-Nov89 < prev    next >
Encoding:
Text File  |  1991-03-06  |  2.2 KB  |  64 lines  |  [TEXT/GEOL]

  1. Item forwarded  by  A33          to A34
  2.  
  3. Item    3383894                         8-Nov-89        17:22
  4.  
  5. From:   D2086                           Efficient Field Svc, C Faith,PRT
  6.  
  7. To:     D1382                           MasterPlan, Chris Ovard,PRT
  8.  
  9. cc:     MACAPP.TECH$                    MacApp Technical
  10.  
  11. Sub:    RE: TTEViews and TDialogViews
  12.  
  13. Jeff,
  14.  
  15. There are several reasons why you may not be getting the correct behavior.
  16.  
  17. First of all ShowReverted does this:
  18.  
  19.     AdjustSize;
  20.     ForceRedraw;
  21.     EachSubView(RevertSubView);
  22.  
  23. ShowReverted is not a good name here, it does not let the reader know what is
  24. happening.  I think it is better from a code readability viewpoint to merely
  25. call AdjustSize and ForceRedraw seperately, especially as there is really no
  26. need to revert any subviews of the TTEView as it usually does not have any.
  27.  
  28. When characters are added the size of the TTEView may change hence the call to
  29. AdjustSize is needed.  Whenever the size can change and/or you change the
  30. contents you should call ForceRedraw.
  31.  
  32. StuffText and SetText only change the data which belongs to the TTEView, hence
  33. the need for the additional calls.  I think that there should be another
  34. parameter to these calls that would if true call AdjustSize and ForceRedraw
  35. automatically.
  36.  
  37. If you want a tab to include the TTEView as part of its tabbing sequence you
  38. will have to either:
  39.  
  40. 1) Use a special TEditText Instead that allows for more than one line.
  41.  
  42. 2) Override the Tab method of TDialogView to include your TTEView in the
  43. sequence.  You could do hilighting etc, you would also have to set the target
  44. to the TTEView there.
  45.  
  46. TDialogview does not tab to TTEViews only TEditText descendants.
  47.  
  48. In order for the TTEView to accept keystrokes it must be in the target chain,
  49. enabled and set to accept changes via the view resource acceptChanges
  50. identifier.
  51.  
  52. In order for the mouse to have any effect the view must be enabled.
  53. MousePresses are not dependant on either the acceptChanges field or the target
  54. chain.
  55.  
  56. I have used TTEViews in TDialogViews many times so there must be something
  57. wrong with what you have done.
  58.  
  59. So check all the view resources to see that everything is OK.  Let me know if
  60. that does not help.
  61.  
  62. - Curtis
  63.  
  64.